import request from '@/config/axios'
// 查询列表
export const getMerchantList = (params) => {
    return request.get({ url: '/merchant/merchant', params })
}
// 新增商户
export const addMerchant = (data) => {
    return request.post({ url: '/merchant/merchant', data })
}
// 查询服务商
export const getServiceList = (params) => {
    return request.get({ url: '/merchant/service-provider', params })
}
// 收入明细
export const getTransactionDetail = (params) => {
    return request.get({ url: `/merchant/transaction-detail`, params })
}
// 收益退款管理详情
export const getProfitRefund = (params) => {
    return request.get({ url: `/merchant/profit-refund`, params })
}

// 查询服务商列表
export const getServiceProviderList = (params) => {
    return request.get({ url: '/merchant/service-provider', params })
}